package com.nbpt.edu.commercesites.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import pojo.*;
import pojo.entity.GoodEntity;
import pojo.vo.GoodVo;
import pojo.vo.GoodVo2;

import java.util.List;

public interface GoodService extends IService<Good> {
    List<Good> getGoodList();
    List<GoodVo> getGoodListMatch();
    GoodVo getGoodMatchById(Long id);
    Good getGoodById(Long id);
    Page<Good> getGoodListPage( Integer current,Integer size, String gName, Long gCategoryId, Boolean gHot );
    List<String> getTypeById(Long id);
    IPage<Category> getCategoryPage(Integer current, Integer size);

    Boolean insertGood(GoodEntity goodEntity);
    Boolean insertCategory(Category category);
    List<Good> getGoodHot();
    List<Good> getGoodNotHot();
    List<Type> getType();
    List<Category> getCategory();
    Boolean deleteById(List<Long> ids);
    Boolean deleteCategoryById(List<Long> ids);
    Boolean deleteTypeById(List<Long> ids);
    Boolean updateGood(GoodVo2 goodVO);
    Boolean updateCategory( Category category);
    List<Good> getGoodByCategory(String cName);
    Boolean insertType( Type type);


}
